package cn.shutdown.farm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.shutdown.farm.dao.LandRepository;
import cn.shutdown.farm.model.Land;
import cn.shutdown.farm.service.LandService;

@Service
public class LandServiceImpl implements LandService {

	@Autowired
	private LandRepository repository;

	@Override
	public List<Land> findByUserId(String userId) {
		return repository.findByUserId(userId);
	}

}
